package org.example.cdpcrpbackend.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    @TableId(value = "id", type = IdType.INPUT)
    @ExcelProperty("student_id")
    @ColumnWidth(20)
    private String id;

    @ExcelProperty("student_name")
    @ColumnWidth(20)
    private String name;

//    private String gender;
//    private LocalDateTime birthday;

    @ExcelIgnore
    private String avatar;

    @ExcelProperty("email")
    @ColumnWidth(30)
    private String email;

    @ExcelIgnore
    private String password;

    @ExcelProperty("class_id")
    @ColumnWidth(30)
    private Integer classId;

    @ExcelIgnore
    private Integer semester;
}
